Skip to main content

REST PutClient Node

The REST PutClient Node gets a trigger to the Input Port, requests REST API Server, sends update to the REST API Server, receives and transmits respond to the Output Ports.

REST PutClient Node
REST PutClient Node

The REST PutClient Node gets an event of any data type to the trigger Input Port to send a request.

The Node has the following General and Input Configuration Parameters:

  • uri (obligatory). Insert the default uri of the REST API Server in the General configuration Parameters. If the REST PutClient Node gets optional uri to the Input Ports the default uri is ignored.
  • header (optional). Empty by default. Gets configurations as a JSON object. Is used to configure authorization, cookie, session etc. If the REST PutClient Node gets optional header to the Input Ports the configuration parameters from the default header and optional header are joined.
  • data (optional). Empty by default. Gets params as a JSON object. Is used to send update to the REST API Server. If the REST PutClient Node gets optional data to the Input Ports the configuration parameters from the default data and optional data are joined.
  • code (optional). Missing by default. The additional parameters can be transmitted to the Input Ports by clicking + button and adding data of any type.

The Node has the following Output Ports:

  • body. The Port gets and transmits the respond of the REST API Server. The data type of the Output Port can be string or object depending on the headers["Content-Type"] in the respond of the REST API Server.
  • header (optional). The Port gets and transmits the header as a JSON object. The Port gets and transmits the header of the respond of the REST API Server.
  • status (optional). The Port gets and transmits the status code of the REST API Server respond as an integer number, ex. 200, 201, 400, 500
  • has_error. The Port gets and transmits the boolean value True if there is an error while requesting the REST API Server, or False if the REST API Server gets request without an error.